package com.imelite.qyh.base.result;

public class ResultBeanFactory {

    private static ResultBean resultBeanSuccess = null;

    public static ResultBean getResultBeanSuccess(){
        if(resultBeanSuccess!=null){
            return resultBeanSuccess;
        }
        resultBeanSuccess = new ResultBean();
        resultBeanSuccess.setCode(ResultBeanConstant.SUCCESS_CODE);
        resultBeanSuccess.setMsg(ResultBeanConstant.SUCCESS_MSG);
        return resultBeanSuccess;
    }
    
    public static ResultBean getResultBeanFail(){
        if(resultBeanSuccess!=null){
            return resultBeanSuccess;
        }
        resultBeanSuccess = new ResultBean();
        resultBeanSuccess.setCode(ResultBeanConstant.FAIL_CODE);
        resultBeanSuccess.setMsg(ResultBeanConstant.FAIL_MSG);
        return resultBeanSuccess;
    }
    
    
    
}
